package homework14;

@SuppressWarnings({"all"})

public class User {
    public static void main(String[] args) {
        CustomerChart datachart1, datachart2 = null;
        datachart1  = new CustomerChart();//创建原型对象
        try
        {
            datachart2 =  datachart1.deepClone();//调用深克隆方法创建克隆对象
        }
        catch(Exception e){
            System.out.println("克隆失败！");
        }
        System.out.println(datachart1 == datachart2);
        System.out.println(datachart1.getCustomer() == datachart2.getCustomer());
        System.out.println(datachart1.getAddress() == datachart2.getAddress());
    }
}
